<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>表格列选择器</title>
		<link rel="stylesheet" type="text/css" href="css/txt.css" />
		<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
	</head>

	<body>

		<input type="text" value="www.baidu.com" /><br/>
		<input type="password" value="饿了吗?" /><br/>
		<input type="radio">男、<input type="radio">女<br/>
		<select>
			<option>*********</option>
		</select><br/>
		<input type="hidden" value="gogogogo"><br/>

	</body>

	<script type="text/javascript">
		$(function() {
			// 取得所有的输入组件，单选按钮，文本框，密码框，隐藏域， 让其样式变为txt.
			// $(":input").attr("class","txt");
//			$(":radio").attr("class","txt");
//			$(":text").attr("class","txt");
//				$(":password").attr("class","txt");			
				$(":hidden").attr("class","txt");
		});
	</script>

</html>